#include<stdio.h>

int main()
{
	char buf[10] = {};

	FILE *fp = fopen("1.txt","r+");
	if(!fp){
		perror("fopen");
		return -1;
	}

	//read a line 
	//fgets(buf,20,fp);
	//printf("buf = %s\n",buf);

	while(fgets(buf,10,fp))
		printf("%s",buf);


	fclose(fp);



	return 0;
}